import request from '@/router/axios'

// 分页查询
export function fetchBrandList(query) {
  return request({
    url: '/eims/brand/page',
    method: 'get',
    params: query
  })
}

// 品牌新增
export function addBrandObj(obj) {
  return request({
    url: '/eims/brand',
    method: 'post',
    data: obj
  })
}

// 按品牌ID查询
export function getBrandObj(id) {
  return request({
    url: '/eims/brand/' + id,
    method: 'get'
  })
}

// 品牌删除
export function delBrandObj(id) {
  return request({
    url: '/eims/brand/' + id,
    method: 'delete'
  })
}

// 品牌信息修改
export function putBrandObj(obj) {
  return request({
    url: '/eims/brand',
    method: 'put',
    data: obj
  })
}
// 品牌信息状态修改(可批量)
export function putBrandStatusObj(obj) {
  return request({
    url: '/eims/brand/updateBrandStatus',
    method: 'put',
    data: obj
  })
}



// 获取商品品种列表
export function getBrandList() {
  return request({
    url: '/eims/brand/getBrandList',
    method: 'get'
  })
}
